package com.party.core.dao.read.collect;

import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.collect.SystemModuleCollect;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.Map;

/**
 * @Description:
 * @Author: yangshoukun
 * @Date: 2018/6/20 16:44
 */
@Repository
public interface SystemModuleCollectReadDao extends BaseReadDao<SystemModuleCollect> {
    SystemModuleCollect findByModuleAndDate(@Param("module") String module, @Param("createDate") Date createDate);

    Map<String, Object> findByModuleAndDateRange(@Param("module") String module,
                                                     @Param("startDate") String startDate,
                                                     @Param("endDate") String endDate);
}
